
import { DTaroAjax, DTaroUpload } from '@/http/http'

const base = '/api/sys-digital'
const fileBase = '/api/cookcar-plat'
const userBase = '/api/'

const common = {
    uploadImages(params) {
        return DTaroUpload(`${base}/dsf/oss2/upload3`, params)
    },
    uploadImagesWatermark(params, type) {
        return DTaroUpload(`${base}/dsf/oss2/upload4?type=${type}`, params)
    },
    onDownload(params) {
        return DTaroAjax(`${base}/dsf/oss/download`, params)
    },
    // 车辆采购合同下载
    getCarWordFile(params) {
        return DTaroAjax(`${fileBase}/contract/clcgTemplate`, params)
    },
    // 车辆代购助购合同下班
    getCarAdvanceFile(params) {
        return DTaroAjax(`${fileBase}/contract/cldgTemplate`, params)
    },
    // 车辆运输合同下载
    getCarFile(params) {
        return DTaroAjax(`${fileBase}/contract/htwlTemplate`, params)
    },
	ipLocation(params) {
	    return DTaroAjax(`//map.baidu.com/?qt=ipLocation`,{},'GET')
	}

}

export default common
